﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Data.Entity.Infrastructure;
using System.Data.Entity;
using System.Linq;
using System.Web;

namespace ABMyFconBD.Models
{
    public class AlumnoContenedor : DbContext
    {
                public AlumnoContenedor()
            : base("DefaultConnection") 
        {

        }

        public DbSet<Alumno> alumnos { get; set; }

        public void agregarAlumno(Alumno alumno) 
        {
            // if (links == null) links = new List<Link>();
            
            alumnos.Add(alumno);

            SaveChanges();
        }
    }
}